/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"96A83A6C-AA6F-4D1C-9A91-8D53CAE47BC0"}
 */
var fPais = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"02670B94-8B0C-4FA7-AA51-0AC5F0BC539B"}
 */
function IraDetalle(event) {
	forms.traslados_dtl.controller.show() 
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"3B11147F-3FF2-4ADE-A485-2A225B6AADF8"}
 * @AllowToRunInFind
 */
function Buscar(event) {
	if (controller.find()== false)
	{
		globals.DIALOGS.showErrorDialog('Error','Error en la búsqueda','OK')
	return	
	}
	traslado_cod_pais = fPais+'%'
	var cuantos = controller.search()
	if (cuantos == 0)
	{
		controller.loadAllRecords()
		globals.DIALOGS.showInfoDialog('Aviso','No se encontraron datos','OK')
	 	
	}
	
}
